package com.bravo.framework;

import com.bravo.event.BravoApplicationEvent;
import com.bravo.listeners.BravoApplicationListener;

/**
 * @Auther: Min.Liu
 * @Description: 事件广播器接口
 * @Date: Created in 14:09 2024/6/11
 */
public interface BravoApplicationEventMulticaster {
    /**
     * 往广播器中添加listener
     * @param listener
     */
    void addApplicationListener(BravoApplicationListener<?> listener);

    /**
     * 发布事件
     * @param event
     */
    void multicastEvent(BravoApplicationEvent event);
}
